/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.config.javabeans;

import java.io.Serializable;

/**
 * This class corresponds to  the "ldap" element of the faare_mapping.xml file.
 * This is the LDAP attribute name corresponding to a business object attribute.
 */
public class JBSrcAttrDesc implements Serializable
{
    /** LDAP attribute name. */
    private String name;

    /** Not used. */
    private String type;

    /**
     * Returns the attribute name.
     * @return name
     */
    public String getName()
    {
        return name;
    }

    /**
     * Not used.
     * @return not used
     */
    public String getType()
    {
        return type;
    }

    /**
     * Sets the attribute name.
     * @param aname The name to set
     */
    public void setName(String aname)
    {
        this.name = aname;
    }

    /**
     * Not used.
     * @param atype Not used.
     */
    public void setType(String atype)
    {
        this.type = atype;
    }

    /**
     * Displays the attribute descriptor.
     *
     * @return String formatted representation of the attribute descriptor.
     */
    @Override
	public String toString()
    {
        StringBuffer buf = new StringBuffer();
        java.util.Iterator it = null;

        buf.append(System.getProperty("line.separator"));
        buf.append(".........name = ");
        buf.append(name);
        buf.append(System.getProperty("line.separator"));
        buf.append(".........type = ");
        buf.append(type);
        buf.append(System.getProperty("line.separator"));

        return buf.toString();
    }

    // end of toString method
}
